package com.cost.domain.vo;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * treeView 模型
 * @author Administrator
 *
 */
public class TreeViewVo implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2465616695267200857L;
	/*id: 0,
    text: "根节点",
    sequence: "sequence-0",
    icon: "",
    enableLinks: true,
    selectable: true, //标记节点是否可以选择。false表示节点应该作为扩展标题，不会触发选择事件。  string
    state:*/
	
	private Integer id;
	private String text;
	private String sequence;
	private TVState state;
	private String href;
	private List<TreeViewVo> nodes;
	/**
	 * 	描述节点的初始状态    Object
        checked: true, //是否选中节点
        disabled: true, //是否禁用节点
        expanded: true, //是否展开节点
        selected: true //是否选中节点
	 * @author Administrator
	 *
	 */
	class TVState{
		private boolean checked;
		private boolean disabled;
		private boolean expanded;
		private boolean selected;
		public boolean isChecked() {
			return checked;
		}
		public void setChecked(boolean checked) {
			this.checked = checked;
		}
		public boolean isDisabled() {
			return disabled;
		}
		public void setDisabled(boolean disabled) {
			this.disabled = disabled;
		}
		public boolean isExpanded() {
			return expanded;
		}
		public void setExpanded(boolean expanded) {
			this.expanded = expanded;
		}
		public boolean isSelected() {
			return selected;
		}
		public void setSelected(boolean selected) {
			this.selected = selected;
		}
		
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getSequence() {
		return sequence;
	}
	public void setSequence(String sequence) {
		this.sequence = sequence;
	}
	public TVState getState() {
		return state;
	}
	public void setState(TVState state) {
		this.state = state;
	}
	public String getHref() {
		return href;
	}
	public void setHref(String href) {
		this.href = href;
	}
	public List<TreeViewVo> getNodes() {
		return nodes;
	}
	public void setNodes(List<TreeViewVo> nodes) {
		this.nodes = nodes;
	}
	
}
